<?
$exam_list=select_lines_all_items($table_Prefix."exam","","equipmentid = '".$detail['nid']."' order by applydate desc,nid desc","");?>

<table class="layui-table">
    <colgroup>
        <col width="80">
        <col width="200">
        <col >
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>序号</th>
        <th>考试日期</th>
        <th>驾照类型</th>
        <th>科目</th>
        <th>教练</th>
        <th>学员</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php
    for ($i = 0; $i < count($exam_list); $i++) {
        ?>
        <tr>
            <td><?echo $i+1?></td>
            <td><?echo substr($exam_list[$i]['applydate'],0,10)?></td>
            <td><?echo $exam_list[$i]['cartype']?></td>
            <td><?echo $exam_list[$i]['name']?></td>

            <?$coach=select_one_line_all_items($table_Prefix."employee","nid = '".$detail[$i]['borrower']."'");?>

            <td><?echo $coach['name']?></td>

            <?$member=select_one_line_all_items($table_Prefix."member","nid = '".$exam_list[$i]['masterid']."'");?>
            <td><?echo $member['name']?></td>
            <td><?echo $exam_list[$i]['status']?></td>

            <th >
                <a href="../exam/detail-edit.php?nav-itemed=member&nid=<? echo $exam_list[$i]['nid'] ?>"
                   target="_blank"
                   class="layui-btn modify"
                   onclick="if(confirm('修改信息后，需要手动刷新本页面数据。')==false)return false;">
                    修改
                </a>
            </th>



        </tr>
        <?;}?>
    </tbody>
</table>